home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / network / pktdrvtp.zip / PKTDRVR.ZIP / PACKET.INC < prev    next >
Text File  |  1993-09-17  |  3KB  |  86 lines

  1. {
  2. ╔════════════════════════════════╤═════════════════════════════════════╗
  3. ║ Filename       : PACKET.INC    │  Program / Unit : [ ]               ║
  4. ║ Description    : Include file  └─────────────────────────────────────╢
  5. ║                  for constants                                       ║
  6. ║                                                                      ║
  7. ╟──────────────────────────────────────────────────────────────────────╢
  8. ║ Compiler       : TURBO PASCAL 7.0                                    ║
  9. ║ OS-Version     : MS-DOS 6.0                                          ║
  10. ║ Last edit      : 17-SEPT-93                                          ║
  11. ╟──────────────────────────────────────────────────────────────────────╢
  12. ║ Author         : Oliver Rehmann                                      ║
  13. ║ Copyright      : Oliver Rehmann                                      ║
  14. ╚══════════════════════════════════════════════════════════════════════╝
  15. }
  16. {$IFNDEF CL_ETHERNET}
  17.  
  18. CONST
  19.  
  20. { Packet driver interface classes }
  21. CL_NONE            = 0;
  22. CL_ETHERNET     = 1;
  23. CL_PRONET_10    = 2;
  24. CL_IEEE8025    = 3;
  25. CL_OMNINET    = 4;
  26. CL_APPLETALK    = 5;
  27. CL_SERIAL_LINE    = 6;
  28. CL_STARLAN    = 7;
  29. CL_ARCNET    = 8;
  30. CL_AX25        = 9;
  31. CL_KISS        = 10;
  32. CL_IEEE8023    = 11;
  33. CL_FDDI     = 12;
  34. CL_INTERNET_X25 = 13;
  35. CL_LANSTAR    = 14;
  36. CL_SLFP     = 15;
  37. CL_NETROM    = 16;
  38. NCLASS        = 17;
  39.  
  40. { Packet driver interface types (not a complete list) }
  41. TC500        = 1;
  42. PC2000        = 10;
  43. WD8003        = 14;
  44. PC8250        = 15;
  45. ANYTYPE        = $ffff;
  46.  
  47. { Packet driver function call numbers. From Appendix B. }
  48. DRIVER_INFO        = 1;
  49. ACCESS_TYPE        = 2;
  50. RELEASE_TYPE        = 3;
  51. SEND_PKT        = 4;
  52. TERMINATE        = 5;
  53. GET_ADDRESS        = 6;
  54. RESET_INTERFACE        = 7;
  55. GET_PARAMETERS        = 10;
  56. AS_SEND_PKT        = 11;
  57. SET_RCV_MODE        = 20;
  58. GET_RCV_MODE        = 21;
  59. SET_MULTICAST_LIST    = 22;
  60. GET_MULTICAST_LIST    = 23;
  61. GET_STATISTICS        = 24;
  62. SET_ADDRESS        = 25;
  63.  
  64. { Packet driver error return codes. From Appendix C. }
  65.  
  66. NO_ERROR    = 0;
  67. BAD_HANDLE    = 1;    { invalid handle number }
  68. NO_CLASS    = 2;    { no interfaces of specified class found }
  69. NO_TYPE        = 3;    { no interfaces of specified type found }
  70. NO_NUMBER    = 4;    { no interfaces of specified number found }
  71. BAD_TYPE    = 5;    { bad packet type specified }
  72. NO_MULTICAST    = 6;    { this interface does not support multicast }
  73. CANT_TERMINATE    = 7;    { this packet driver cannot terminate }
  74. BAD_MODE    = 8;    { an invalid receiver mode was specified }
  75. NO_SPACE    = 9;    { operation failed because of insufficient space }
  76. TYPE_INUSE    = 10;    { the type had previously been accessed, and not released }
  77. BAD_COMMAND    = 11;    { the command was out of range, or not    implemented }
  78. CANT_SEND    = 12;    { the packet couldn't be sent (usually    hardware error) }
  79. CANT_SET    = 13;    { hardware address couldn't be changed (> 1 handle open) }
  80. BAD_ADDRESS    = 14;    { hardware address has bad length or format }
  81. CANT_RESET    = 15;    { couldn't reset interface (> 1 handle open) }
  82.  
  83. CARRY_FLAG    = 1;
  84.  
  85. {$ENDIF    }
  86.